import { postAxios, getAxios } from '@/utils/http'

export const tripApi = {
  tripList: (params) => {
    return postAxios('/epidemic/trip/list',params);
  },

  tripAdd: (data) => {
    return postAxios('/epidemic/trip/add',data);
  },

  tripUpdate: (data) => {
    return postAxios('/epidemic/trip/update', data);
  },

  tripDelete: (id) => {
    return getAxios('/epidemic/trip/delete',{id:id});
  },

  tripDisable: (id,isDisable) => {
    return getAxios('/epidemic/trip/disable',{id:id,isDisable:isDisable});
  },
};